package cn.gok.web.beans;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 用户
 */
public class User {
    private int id;//用户id
    @NotEmpty(message = "名字不能为空！")
    private String suser;//用户名
    @NotEmpty(message = "密码不为空")
    private String spwd;//用户密码
    @Pattern(regexp = "/^1(3[0-9]|5[012356789]|8[056789])[0-9]{8}$/",message = "电话号码不符合规范")
    private String sphone;//用户电话
    private String sname;//真实姓名
    private int ssex;//性别
    private String dbirth;//生日
    private String semail;//email
    private String province;//省
    private String city;//市
    private String area;//区
    private String address;//区级以下地址
    private String saddress;//全部地址
    private String scode;//邮编
    private String dregdate;//注册时间
    private int slock;//帐户状态
    private String dlastdate;//最后登录时间
    private int nlogin;//登录次数
    private int slever;//会员等级

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public int getSsex() {
        return ssex;
    }

    public void setSsex(int ssex) {
        this.ssex = ssex;
    }

    public String getDbirth() {
        return dbirth;
    }

    public void setDbirth(String dbirth) {
        this.dbirth = dbirth;
    }

    public String getSemail() {
        return semail;
    }

    public void setSemail(String semail) {
        this.semail = semail;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSaddress() {
        return saddress;
    }

    public void setSaddress(String saddress) {
        this.saddress = saddress;
    }

    public String getScode() {
        return scode;
    }

    public void setScode(String scode) {
        this.scode = scode;
    }

    public String getDregdate() {
        return dregdate;
    }

    public void setDregdate(String dregdate) {
        this.dregdate = dregdate;
    }

    public int getSlock() {
        return slock;
    }

    public void setSlock(int slock) {
        this.slock = slock;
    }

    public String getDlastdate() {
        return dlastdate;
    }

    public void setDlastdate(String dlastdate) {
        this.dlastdate = dlastdate;
    }

    public int getNlogin() {
        return nlogin;
    }

    public void setNlogin(int nlogin) {
        this.nlogin = nlogin;
    }

    public int getSlever() {
        return slever;
    }

    public void setSlever(int slever) {
        this.slever = slever;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSuser() {
        return suser;
    }

    public void setSuser(String suser) {
        this.suser = suser;
    }

    public String getSpwd() {
        return spwd;
    }

    public void setSpwd(String spwd) {
        this.spwd = spwd;
    }

    public String getSphone() {
        return sphone;
    }

    public void setSphone(String sphone) {
        this.sphone = sphone;
    }
}
